GtkViewport: annotate the adjustment args of the constructor
authorTorsten Schönfeld <kaffeetisch@gmx.de>
Sun, 17 Feb 2013 13:00:10 +0000 (14:00 +0100)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 19 Feb 2013 00:39:12 +0000 (19:39 -0500)
NULL is accepted here, so add (allow-none).

https://bugzilla.gnome.org/show_bug.cgi?id=694022

gtk/gtkviewport.c

index 935bda7b9ee91383bae217a8fadbdd0517c95e80..0469c5bce43bc37809e29bdb281a7817f41503d6 100644 (file)
@@ -255,10 +255,11 @@ gtk_viewport_init (GtkViewport *viewport)
 
 /**
  * gtk_viewport_new:
- * @hadjustment: horizontal adjustment
- * @vadjustment: vertical adjustment
+ * @hadjustment: (allow-none): horizontal adjustment
+ * @vadjustment: (allow-none): vertical adjustment
  *
- * Creates a new #GtkViewport with the given adjustments.
+ * Creates a new #GtkViewport with the given adjustments, or with default
+ * adjustments if none are given.
  *
  * Returns: a new #GtkViewport
  */